{extends file="backend/index.tpl"} {block name="page-content"} 
<form id="validate" class="addGame" method="POST" action="{$base_url}admin/category/updateCategory">
	<input type="hidden" class="validate[required]" name="id" value="{$category.id}" />
	<div class="row-fluid">
		<div class="span6">
			<div class="block">
				<div class="head">
					<h2>Update Category</h2>
					<ul class="buttons">
						<li><a href="#" onclick="source('form_default'); return false;">
								<div class="icon">
									<span class="ico-info"></span>
								</div> </a>
						</li>
					</ul>
				</div>
				<div class="data-fluid">
					<div class="row-form">
						<div class="span3">Name</div>
						<div class="span9">
							<input type="text" class="validate[required]" name="name" value="{$category.name}" /> <span
								class="bottom">Required</span>
						</div>
					</div>
					<div class="row-form">
						<div class="span3">Page Keyword</div>
						<div class="span9">
							<input name="page_keyword" type="text" class="tags" value="{$category.page_keyword}" />
						</div>
					</div>
					<div class="row-form">
						<div class="span3">Page Description</div>
						<div class="span9">
							<textarea name="page_description"
								placeholder="Placeholder example" class="validate[required]"> {$category.page_description}</textarea>
						</div>
					</div>
					<div class="toolbar bottom tar">
						<div class="btn-group">
							<button class="btn btn-info" type="button"
								onClick="$('#validate').validationEngine('hide');">Hide prompts</button>
							<button class="btn" type="submit" name="submit" id="addBook">Update
								Category</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="span6">
			<div class="block">
				<div class="head">
					<h2></h2>
					<ul class="buttons">
						<li><a href="#" onclick="source('form_pa'); return false;">
								<div class="icon">
									<span class="ico-info"></span>
								</div> </a>
						</li>
					</ul>
				</div>
				<div class="data-fluid">
					<div class="row-form">
						<div class="span3">Unique Name</div>
						<div class="span9">
							<input type="text" class="validate[required]" name="uname" value="{$category.uname}" /> <span
								class="bottom">Required</span>
						</div>
					</div>
					<div class="row-form">
						<div class="span3">Page Title</div>
						<div class="span9">
							<input type="text" id="pageTitle" name="page_title" value="{$category.page_title}" />
						</div>
					</div>		
					<div class="row-form">
						<div class="span3">Display</div>
						<div class="span9">
							<input type="radio" class="validate[required]" name="display" value="Y" {if $category.display eq 'Y'}checked="checked"{/if}/> Yes 
							<input type="radio" class="validate[required]" name="display" value="N" {if $category.display eq 'N'}checked="checked"{/if}/> No
						</div>
					</div>
					<div class="row-form">
						<div class="span3">Type</div>
						<div class="span9">
							<input type="radio" class="validate[required]" name="type" value="T" {if $category.type eq 'T'}checked="checked"{/if}/> Translate 
							<input type="radio" class="validate[required]" name="type" value="C" {if $category.type eq 'C'}checked="checked"{/if}/> Convert
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>
{/block}

